﻿<sdk:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"	x:Class="Lottery.Client.SL.Controls.AppendChase"
	Style="{StaticResource ChildWindowStyle_ConfirmWindow}" Width="430" Height="420" Title="发起追号">
    <sdk:ChildWindow.Resources>
        <Style x:Key="rtgStyle" TargetType="Rectangle">
            <Setter Property="Width" Value="430"/>
            <Setter Property="Height" Value="24"/>
            <Setter Property="StrokeThickness" Value="1"/>
            <Setter Property="RadiusX" Value="0"/>
            <Setter Property="Fill" Value="#FFF1B206"/>
            <Setter Property="Stroke" Value="#FFF7BE21"/>
        </Style>
    </sdk:ChildWindow.Resources>
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="410" Width="430">
        <Grid x:Name="gridMain">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock FontSize="12" Foreground="#FFCECECE" Height="20" HorizontalAlignment="Left" Margin="12,12,0,0" Text="起始" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" />
            <ComboBox x:Name="cbChaseIsuses" HorizontalAlignment="Left" Margin="41,11,0,0" VerticalAlignment="Top" Width="120" />
            <TextBlock FontSize="12" Foreground="#FFCECECE" Height="20" HorizontalAlignment="Left" Margin="171,12,0,0" Text="追" TextWrapping="Wrap" VerticalAlignment="Top" Width="18" />
            <TextBox x:Name="tbAppIsusesNumber" Height="20" HorizontalAlignment="Left" Margin="190,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="50" Text="10" />
            <TextBlock FontSize="12" Foreground="#FFCECECE" Height="20" HorizontalAlignment="Right" Margin="0,11,94,0" Text="初始倍数：" TextWrapping="Wrap" VerticalAlignment="Top" Width="62" />
            <TextBox x:Name="tbAppMultiple" Height="20" HorizontalAlignment="Right" Margin="0,10,39,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="53" IsReadOnly="True" />
            <TextBlock FontSize="12" Foreground="#FFCECECE" Height="20" HorizontalAlignment="Left" Margin="248,11,0,0" Text="期" TextWrapping="Wrap" VerticalAlignment="Top" Width="18" />
            <Rectangle Fill="#FF878787" Height="1" Margin="0,38,10,0" StrokeThickness="0" VerticalAlignment="Top" Width="420" />
            <CheckBox x:Name="cbStop" Content="中奖后停止" FontSize="12" FontWeight="Bold" Foreground="#FFAAE203" Height="20" Width="88" Margin="9,357,333,33" IsChecked="True" />
            <TextBlock Height="20" TextWrapping="Wrap" Text="当某期中奖后自动放弃后面投注。" Foreground="#FFE6E9E4" FontSize="12" Margin="108,357,135,33" />
            <Button x:Name="btAddChase" Content="确定追号" FontSize="14" Margin="327,351,23,33" Style="{StaticResource buttonStyle0}" Width="80" />
            <TextBlock x:Name="tbkShowInfo" FontSize="12" Foreground="#FFCACACA" Height="20" Margin="73,0,109,56" TextWrapping="Wrap" VerticalAlignment="Bottom" />
            <Canvas Margin="0,38,16,79">
                <Grid x:Name="gridList" Grid.Row="2" Width="414" Height="290">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="0" HorizontalScrollBarVisibility="Disabled" Height="290" BorderBrush="#FFFDFAF8">
                        <sdk:DataGrid x:Name="dgAppChase" CellStyle="{StaticResource DataGridCellStyle_Report}" ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle_DealStart}" RowStyle="{StaticResource DataGridRowStyle_Report}" AutoGenerateColumns="False" CanUserResizeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False" HeadersVisibility="Column" Opacity="1" VerticalScrollBarVisibility="Disabled"  AreRowDetailsFrozen="True" IsReadOnly="True" HorizontalGridLinesBrush="Black" VerticalGridLinesBrush="#FF666666" RowBackground="#FF323232" GridLinesVisibility="Vertical" Background="Black" AlternatingRowBackground="#FF262626" SelectedIndex="0">
                            <sdk:DataGrid.Columns>
                                <sdk:DataGridTemplateColumn Header="选择" Width="50">
                                    <sdk:DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <CheckBox x:Name="cbSelect" Tag="{Binding ID}" Height="20" IsChecked="True" Click="cbSelect_Click" />
                                        </DataTemplate>
                                    </sdk:DataGridTemplateColumn.CellTemplate>
                                </sdk:DataGridTemplateColumn>
                                <sdk:DataGridTextColumn Header="期数" Binding="{Binding IsuseName}" Width="160" CellStyle="{StaticResource DataGridCellStyle_Number}" />
                                <sdk:DataGridTemplateColumn Header="倍数" Width="80">
                                    <sdk:DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBox x:Name="tbDQMulit" Width="40" Margin="2" HorizontalAlignment="Center" Text="{Binding Multiple}" VerticalAlignment="Center" Cursor="Hand" LostFocus="tbAllMultiple_LostFocus"/>
                                        </DataTemplate>
                                    </sdk:DataGridTemplateColumn.CellTemplate>
                                </sdk:DataGridTemplateColumn>
                                <sdk:DataGridTemplateColumn Header="金额" Width="102">
                                    <sdk:DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock x:Name="tbkIsusesMoney" Text="{Binding IsuseMoney}" Margin="2" Foreground="Aqua" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand" TextDecorations="Underline" />
                                        </DataTemplate>
                                    </sdk:DataGridTemplateColumn.CellTemplate>
                                </sdk:DataGridTemplateColumn>
                            </sdk:DataGrid.Columns>
                        </sdk:DataGrid>
                    </ScrollViewer>
                </Grid>
            </Canvas>
        </Grid>
        <Grid x:Name="gridLoading" Grid.RowSpan="3" Background="#FF404040" Visibility="Collapsed">
            <Border x:Name="border_Processing" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2" Grid.RowSpan="3">
                <StackPanel Margin="5">
                    <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="#FFB7B7B7" Margin="5" HorizontalAlignment="Center"/>
                    <ProgressBar x:Name="progressBarLoading" Height="10" Width="200" IsIndeterminate="True"/>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
</sdk:ChildWindow>
